package TutorialPoint;


public class Switch {
	String grade;

	public Switch(String grade){
		this.grade = grade;
	}
	
	public static void main(String args[]){
		
		Switch grd = new Switch("graduate");
		System.out.println("Value of grade is: " + grd.grade);
		
		switch(grd.grade){
		case "kinder":
			System.out.println("Child goes to primary school");
			break;
		case "Eighth":
			System.out.println("champ goes to junior middle school");
			break;
		case "+2":
			System.out.println("Youth goes to High school");
			break;
		case "graduate":
			System.out.println("Student Goes to University");
			break;
		default:
			System.out.println("Type of institution not recognized");
			break;
		}

	}
}
